package com.my.bean;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 潜在客户资料管理
 * </p>
 *
 * @author 冯政尚
 * @since 2018-09-26
 */
@TableName("customer")
public class Customer extends Model<Customer> {

	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@TableId("customer_id")
	private Long customerId;
	/**
	 * 客户等级（A，B，C）
	 */
	private String lev;
	/**
	 * 录入人
	 */
	@TableField("input_person")
	private String inputPerson;
	/**
	 * 客户姓名
	 */
	private String name;
	/**
	 * 客户性别(1:男，2:女，3：未知)
	 */
	private Integer sex;
	/**
	 * 预产期（毫秒级时间戳）
	 */
	private Long expected;
	/**
	 * 家庭住址
	 */
	private String address;
	/**
	 * 客户异议
	 */
	private String objection;
	/**
	 * 竞争对手
	 */
	private String competitor;
	/**
	 * 预算
	 */
	private String budget;
	/**
	 * 建卡
	 */
	@TableField("construction_card")
	private String constructionCard;
	/**
	 * 信息管理
	 */
	private String management;
	/**
	 * 创建时间
	 */
	@TableField("createTime")
	private Long createTime;
	/**
	 * 联系方式
	 */
	private Long phone;
	/**
	 * 客户来源
	 */
	private String source;
	/**
	 * 是否参观   1.参观   2.未参观
	 */
	private String visit;
	/**
	 * 销售员
	 */
	@TableField("salesperson")
	private String salesperson;
	/**
	 * 微信号
	 */
	private String weixin;
	/**
	 * 参观次数
	 */
	@TableField("visitNumber")
	private Integer visitNumber;
	/**
	 * 跟进次数
	 */
	@TableField("followUp")
	private Integer followUp;
	/**
	 * 备注
	 */
	private String remarks;
	@TableField("areaid")
	private Long areaid;


	public Long getAreaid() {
		return areaid;
	}

	public void setAreaid(Long areaid) {
		this.areaid = areaid;
	}

	public Long getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Long customerId) {
		this.customerId = customerId;
	}

	public String getLev() {
		return lev;
	}

	public void setLev(String lev) {
		this.lev = lev;
	}

	public String getInputPerson() {
		return inputPerson;
	}

	public void setInputPerson(String inputPerson) {
		this.inputPerson = inputPerson;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Long getExpected() {
		return expected;
	}

	public void setExpected(Long expected) {
		this.expected = expected;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getObjection() {
		return objection;
	}

	public void setObjection(String objection) {
		this.objection = objection;
	}

	public String getCompetitor() {
		return competitor;
	}

	public void setCompetitor(String competitor) {
		this.competitor = competitor;
	}

	public String getBudget() {
		return budget;
	}

	public void setBudget(String budget) {
		this.budget = budget;
	}

	public String getConstructionCard() {
		return constructionCard;
	}

	public void setConstructionCard(String constructionCard) {
		this.constructionCard = constructionCard;
	}

	public String getManagement() {
		return management;
	}

	public void setManagement(String management) {
		this.management = management;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public Long getPhone() {
		return phone;
	}

	public void setPhone(Long phone) {
		this.phone = phone;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getVisit() {
		return visit;
	}

	public void setVisit(String visit) {
		this.visit = visit;
	}

	public String getSalesperson() {
		return salesperson;
	}

	public void setSalesperson(String salesperson) {
		this.salesperson = salesperson;
	}

	public String getWeixin() {
		return weixin;
	}

	public void setWeixin(String weixin) {
		this.weixin = weixin;
	}

	public Integer getVisitNumber() {
		return visitNumber;
	}

	public void setVisitNumber(Integer visitNumber) {
		this.visitNumber = visitNumber;
	}

	public Integer getFollowUp() {
		return followUp;
	}

	public void setFollowUp(Integer followUp) {
		this.followUp = followUp;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@Override
	protected Serializable pkVal() {
		return this.customerId;
	}

	@Override
	public String toString() {
		return "Customer{" +
				"customerId=" + customerId +
				", lev=" + lev +
				", inputPerson=" + inputPerson +
				", name=" + name +
				", sex=" + sex +
				", expected=" + expected +
				", address=" + address +
				", objection=" + objection +
				", competitor=" + competitor +
				", budget=" + budget +
				", constructionCard=" + constructionCard +
				", management=" + management +
				", createTime=" + createTime +
				", phone=" + phone +
				", source=" + source +
				", visit=" + visit +
				", salesperson=" + salesperson +
				", weixin=" + weixin +
				", visitNumber=" + visitNumber +
				", followUp=" + followUp +
				", remarks=" + remarks +
				"}";
	}
}
